<script id="addAuthoritiesTemplate" type="text/template">
    <%_.each(ids, function(id, j) {%>
    <input type="hidden" name="authorities" value="<%-id%>" />
    <%});%>
</script>